home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Plug-In Power Pack for Netscape Communicator
/
Plug-In Power Pack for Netscape Communicator.iso
/
plugins
/
dataviews
/
dvdraw
/
examples
/
datasource
/
dsdllreadme.txt
< prev
next >
Wrap
Text File
|
1997-05-27
|
4KB
|
114 lines
Integrating Your Data Model into DV-Draw
In the integration stage, you must:
Coordinate the DLL name and location with the
corresponding Variable in the registry.
If you want to run views using your data model, create a
companion Run DLL to support your data model.
Setting the Registry Key
When you install DV-Draw, the installation specifies the default
data source DLL in the registry. In order to use your custom
data source DLL, you must change the DSDLLNAME registry key
setting before you start DV-Draw. You can use your system's
registry editor to do this. The DSDLLNAME registry key can be set
in one of two places.
When you start DV-Draw, the executable checks the registry for the
location of the data source DLL and loads that DLL. If no data
source DLL is found, DV-Draw issues a message and the resulting
instance of DV-Draw has no data-related functionality. No
warning message appears. However, you can verify what DLL is in
use by selecting the "About" option under the Help Menu. If no
data source DLL is in use, the entry says "NO DATA COMPONENT
LOADED."
By default, DV-Draw looks for the data source DLL specified by the
following path in the registry:
HKEY_CURRENT_USER
Software
DataViews
DV-Draw
9.8
General
DSDLLNAME
If no DLL is found by looking under HKEY_CURRENT_USER, DV-Draw
looks under HKEY_LOCAL_MACHINE, using the following path:
HKEY_LOCAL_MACHINE
Software
DataViews
DV-Draw
9.8
General
DSDLLNAME
The name of the default data source DLL is DataSource.dll. If
the name is specified using an absolute path, that file is used.
If the name is specified without any path information, DV-Draw
uses LoadLibrary to search the directories specified by the search
path.
When you install DV-Draw, the installation specifies the default
data source DLL using HKEY_LOCAL_MACHINE, and does not specify
anything under HKEY_CURRENT_USER. Therefore, if no DLL is
specified for the current user, DV-Draw uses the DLL specified
under HKEY_LOCAL_MACHINE. By explicitly setting HKEY_CURRENT_USER,
you can specify different paths or different data source DLL names
for different users.
Given these factors, there are numerous ways to set up the
registry to make DV-Draw find the data source DLL you want it to
use:
You can store your data source DLL in the same directory as the
default DV-Draw data source DLL and change the name of the data
source DLL specified by the default path in the registry. For this
method, your data source DLL must have a different name from the
default data source DLL.
You can store your data source DLL in a separate directory and
change the search path specified in the registry. The directory of
the desired DLL should appear before the directory where the
default DLL is located. For this method, your data source DLL
should have the same name as the default data source DLL.
You can set up the HKEY_CURRENT_USER information so that
specific users can use different DLLs. For this method, your
data source DLL can have a different name from the default data
source DLL and be in the same directory as the default data source
DLL, or it can have any name in any other directory.
If your data model is significantly different from the default
DV-Draw data model, and if you want to run views using your data
model, you must create a companion Run DLL to support your data model.
For information about creating a companion Run DLL, see the
"Customizing the DV-Draw Data Model" chapter.
As with the data source DLL, you must set the appropriate registry
key in order to make DV-Draw use your custom Run DLL. As discussed
in the previous section, DV-Draw looks for the run DLL specified
by the following path:
HKEY_CURRENT_USER - or - HKEY_LOCAL_MACHINE
Software
DataViews
DV-Draw
9.8
General
RUNDLLNAME
Use the registry editor to set the RUNDLLNAME registry key under the
HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE path. For more information
about where DV-Draw looks for the RUNDLLNAME registry key and how
you can set this registry key to make DV-Draw use your custom Run DLL,
see the "Setting the Registry Key" section.